package com.hutao.medical.mapper.borrow;

import org.apache.ibatis.annotations.Param;

import com.hutao.medical.pojo.borrow.HospitalNote;

public interface HospitalNoteMapper {
    int deleteByPrimaryKey(String firstGuid);

    int insert(HospitalNote record);

    int insertSelective(HospitalNote record);

    HospitalNote selectByPrimaryKey(String firstGuid);

    int updateByPrimaryKeySelective(HospitalNote record);

    int updateByPrimaryKey(HospitalNote record);
    
    /**
     * 根据firstGuid判断hospitalNote是否存在
     * @param firstGuid
     * @return
     */
    int isExistHospitalNote(@Param("firstGuid")String firstGuid);
    
    /**
     *  根据firstGuid查询HospitalNote
     *  @param firstGuid
     */
    HospitalNote getHospitalNoteByFirstGuid(@Param("firstGuid")String firstGuid);
}